package com.ws.service.impl;

import com.ws.service.DemoService;
import org.springframework.stereotype.Component;

import javax.jws.WebService;
import java.util.Date;

/**
 * @ClassName DemoServiceImpl
 * @Description TODO
 * @Author zhengchenggong
 * @Date 2020/7/14 1:58 下午
 * @Version 1.0
 **/

/*@WebService(serviceName = "DemoService", // 与接口中指定的name一致
        targetNamespace = "http://service.ws.com", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.ws.service.DemoService"// 接口地址
)*/
//@Component
public class DemoServiceImpl implements DemoService {
    @Override
    public String sayHello(String user) {
        return user + "，现在时间：" + "(" + new Date() + ")";

    }
}
